/*
 * Copyright (C) 2010 Johan Waldeback
 *  
 * This file is part of the OpenFMS project (http://www.openfms-project.org)
 * 
 * OpenFMS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */


#ifndef __MODELVIEWERFRAME_H__
#define __MODELVIEWERFRAME_H__

#include "GraphCtrl.h"
#include <wx/frame.h>
#include <wx/string.h>
#include <wx/button.h>
#include <wx/textctrl.h>

namespace OpenFms {

/**
 * \class ModelViewerFrame
 * \brief Main frame for the Moder Vieewe application
 */

class ModelViewerFrame : public wxFrame
{
private:
	static const int ID_MODELBROWSE = 100;
	static const int ID_SIMULATORBROWSE = 101;
	static const int ID_MODELTEXT = 102;
	static const int ID_SIMULATORTEXT = 103;
	static const int ID_DOSWEEP = 104;
	static const int ID_GRAPH = 105;
	GraphCtrl *m_pGraphCtrl;

private:
	void DoBrowse( int idTextCtrl );
public:
	ModelViewerFrame( const wxString &title );
	void OnBrowseModel( wxCommandEvent &evt );
	void OnBrowseSimulator( wxCommandEvent &evt );
	void OnDoRead( wxCommandEvent &evt );
};

} // namespce OpenFms
#endif // __MODELVIEWERFRAME_H__
